package sort;

public interface BasicMethod {
    void sort(Comparable[] arr);

    default boolean bigger(Comparable v, Comparable w) {
        return v.compareTo(w) > 0;
    }

    ;

    default void swap(Comparable[] arr, int i, int j) {
        Comparable temp = arr[i];
        arr[i] = arr[j];
        arr[j] = temp;
    }

    ;

}
